<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>layui</title>
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <link rel="stylesheet" href="/layui/css/layui.css"  media="all" />
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>

<div class="layui-form" style="width: 1080px;">
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col width="150">
            <col width="200">
            <col width="200">
            <col width="200">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>小组名称</th>
            <th>资料名称</th>
            <th>IP</th>
            <th>上传人</th>
            <th>创建时间</th>
            <th>更新时间</th>
            <th>浏览数</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="user,userStat : ${userlist}">
            <th th:text="${user.userClass}">小组名称</th>
            <th th:text="${user.dataName}">资料名称</th>
            <th th:text="${user.userIp}">IP</th>
            <th th:text="${user.uploadPerson}">上传人</th>
            <th th:text="${#dates.format(***.gmtCreate, 'yyyy-MM-dd HH:mm:ss')}">创建时间</th>
            <th th:text="${#dates.format(***.gmtModify, 'yyyy-MM-dd HH:mm:ss')}">更新时间</th>
            <th th:text="${user.userClass}">浏览数</th>
        </tr>

        </tbody>
    </table>
</div>


<script src="/layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->

<script>
    layui.use('table', function(){
        var table = layui.table;

    });
</script>

</body>
</html>